.add_patient_title {
  text-align: left;
  color: #000000;
  font-size: 2rem;
  font-family: DDin;
  font-weight: 700;
  line-height: 2.38rem;
  caret-color: transparent;
  user-select: none;
}


.patient-table-container{
  margin-top: 1rem;
  padding: 0 1.25rem;
  width: 100%;
}

.patient-inner{
  padding: 0.9rem;
  text-align: left;
}

.patient-table{
  border-collapse: collapse; 
}

.button-container {
  margin-top: 1rem;
  display: flex;
}


.left-title{
  text-align: left;
}

.text-wrapper {
  border: 1px solid #ccc;
  padding: 0.63rem 0;
  background-color: #f7f7f7;
  border-radius: 0.31rem;
  width: 11.38rem;
  height: 2rem;
  text-align: left;
}

.text-wrapper_2 {
  padding: 0.63rem 0 3.38rem;
  background-color: #f7f7f7;
  border-radius: 0.31rem; 
  width: 31.5rem;
  height: 12rem;
  resize: none;
}

.text-wrapper_3 {
  margin-left: 18.31rem;
  padding: 0.5rem 0;
  background-color: #1daba6;
  border-radius: 1.5rem;
  width: 4.5rem;
  height: 2.2rem;
}

.text-wrapper_4 {
  margin-left: 18.31rem;
  padding: 0.5rem 0;
  background-color: #f7f7f7;
  border-radius: 1.5rem;
  width: 4.5rem;
  height: 2.2rem;
}

.font_2 {
  font-size: 0.95rem;
  font-family: HarmonyOSSansSC;
  line-height: 0.8rem;
  color: #9c9fa7;
}

.text_27 {
  color: #f7f7f7;
  line-height: 0.81rem;
}

.text_28 {
  color: #030302;
  line-height: 0.8rem;
}

.top-aligned {
  vertical-align: top;
}

.desc-inner{
  padding: 0.9rem 0;
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  caret-color: transparent;
}

.modal-content-bedlist {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  width: 400px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}

.modal-btn {
  background-color: #65b8b5;
  border-radius: 0.5rem;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 0.5rem 0.5rem;
}

.bed_list_information {
  margin: 7px;
  text-align: center;
  line-height: 0.83rem;
  color: #9c9fa7;
}

.error_information {
  margin: 7px;
  text-align: center;
  font-size: 20px;
}

.bed-list-row{
  margin-top: 0.19rem;
  padding: 0.63rem 2rem;
  
  border-radius: 0.63rem;
  width: 100%;
  text-align: center;
}


thead{
  height: 2rem;
}

td {
  text-align: center;
}

td:last-child .flex-row {
  justify-content: center;
}

.main-content {
    padding: 20px 40px;
    margin-left: 200px;
    width: calc(100% - 200px);
    box-sizing: border-box;
    min-height: calc(100vh - 60px);
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: #333;
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header .subtitle {
    color: #666;
    margin: 5px 0 0;
    font-size: 14px;
}

.search-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px 15px;
    gap: 10px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px #1daba6;
}

.search-box i {
    color: #666;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: #333;
}

.patient-info-section, .case-form-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.info-grid, .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-item, .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label, .form-group label {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item span {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group select, .form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: #1daba6;
    box-shadow: 0 0 0 2px rgba(29, 171, 166, 0.2);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.primary-btn, .secondary-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: #1daba6;
    color: white;
    border: none;
}

.primary-btn:hover {
    background: #158f8a;
    transform: translateY(-1px);
}

.secondary-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.secondary-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    margin: 10vh auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-body {
    padding: 20px;
    color: #666;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #666;
}